package filter;

import javax.servlet.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebFilter(filterName = "PictureFilter",urlPatterns = "*.pic")
public class PictureFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException {

        System.out.println("已将图片压缩");

        chain.doFilter(request, response);

    }
}
